package com.icetech.eom.service.sys;

import com.baomidou.mybatisplus.extension.service.IService;
import com.icetech.eom.domain.sys.Permission;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author wangzw
 * @since 2018-12-10
 */
public interface IPermissionService extends IService<Permission> {

    List<Permission> findByTypeAndStatusOrderBySortOrder(Integer permissionOperation, Integer statusNormal);

    List<Permission> findByUserId(Long id);

    List<Permission> findByLevelOrderBySortOrder(Integer levelOne);

    List<Permission> findByParentIdOrderBySortOrder(Long id);

    List<Permission> findByTitle(String title);

    List<Permission> findByTitleLikeOrderBySortOrder(String s);

    /**
     * 获取所有的权限信息
     * @return
     */
    List<Permission> getAllPermission();

    List<Permission> findByIdsAndLevel(List<Long> permissionIds, Integer levelTwo);

    /**
     * 查询权限标识是否存在
     * @param buttonType
     * @return
     */
    List<Permission> findByButtonType(String buttonType);
}
